package com.java.comprehensive.other.config.annotation;

import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 自定义注解`InheritedTest`使用了`@Inherited`元注解，表示此自定义注解**用在类上时，会被子类所继承**
 */
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface InheritedTest {
    String value() default "this is default value for custom annotation InheritedTest that can use Annotation @Inherited.";
}